/*
共用体(联合体)
*/
#include<stdio.h>
int checkCPUendian()
{ 
	union{
		unsigned int a;
		unsigned char b;
	}c;
	c.a = 1;
	return (c.b == 1); 
} 

int main()
{
	int ret = checkCPUendian();
	printf("c.b = %d \n" , ret );
	return 0;
}

